package com.daidai.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Author: Mr.Chen
 * Date: 2022/08/01 18:52
 * Description:
 */
@Controller
public class ExceptionController {
    @GetMapping("400")
    public String badRequest() {
        return "/mid/error";
    }

    @GetMapping("404")
    public String notFound() {
        return "/mid/error";
    }


    @GetMapping("500")
    public String serverError() {
        return "/mid/error";
    }
}

